package com.wang.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 店铺评价
 * @TableName evaluation
 */
@TableName(value ="evaluation")
@Data
public class Evaluation {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 关联的商铺id
     */
    @TableField(value = "shop_id")
    @ApiModelProperty(value = "关联的商铺id")
    private Long shopId;

    /**
     * 评价用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "评价用户id")
    private Integer userId;

    /**
     * 评价内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value = "评价内容")
    private String content;

    /**
     * 评价图片
     */
    @TableField(value = "image_url")
    @ApiModelProperty(value = "评价图片")
    private String imageUrl;

    /**
     * 评价星级
     */
    @TableField(value = "level")
    @ApiModelProperty(value = "评价星级")
    private Integer level;

    /**
     * 创建时间[也是评价时间]
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间[也是评价时间]")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}